package com.then.libary.activity;

import com.then.libary.service.UserActivityService;
import com.then.libary.service.impl.UserActivityServiceImpl;
import com.then.libary.view.HeadView;
import com.then.libary.view.SideMuneUi;
import com.then.libary.view.SlideMenu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

public class UserActivity extends Activity {
	private UserActivityService userActivityService;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.user_activity);
		SlideMenu sidebarView = (SlideMenu) findViewById(R.id.useractivity_sidebar);
		SideMuneUi sideMuneUi = new SideMuneUi(getApplicationContext(), sidebarView ,this);
		sidebarView.initImg(sideMuneUi);
		HeadView headView = new HeadView(getApplicationContext(), this, sidebarView);
		userActivityService = new UserActivityServiceImpl(getApplicationContext(), this);
		userActivityService.initUl();
	}
	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		// TODO Auto-generated method stub
		userActivityService.onActivityResult(requestCode, resultCode, data);
	}
}
